<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Contrat</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Contrat</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/geoff/workspace/svn/trunk/DreamPark/modele/Contrat.py">/home/geoff/workspace/svn/trunk/DreamPark/modele/Contrat.py</a></font></td></tr></table>
    <p><tt>Created&nbsp;on&nbsp;5&nbsp;dec.&nbsp;2014<br>
&nbsp;<br>
@author:&nbsp;Damien&nbsp;Torond&nbsp;et&nbsp;Geoffrey&nbsp;Sentost<br>
Module&nbsp;<a href="#Contrat">Contrat</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="datetime.html">datetime</a><br>
</td><td width="25%" valign=top><a href="time.html">time</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Contrat.html#Contrat">Contrat</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Contrat">class <strong>Contrat</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>La&nbsp;classe&nbsp;<a href="#Contrat">Contrat</a>&nbsp;met&nbsp;en&nbsp;place&nbsp;les&nbsp;contrats&nbsp;d'abonnements&nbsp;pour&nbsp;les&nbsp;clients&nbsp;avec&nbsp;un<br>
delai&nbsp;pour&nbsp;chacun&nbsp;d'eux.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Contrat-__init__"><strong>__init__</strong></a>(self, abonnement, dateDebut=None, dateFin=None, estEnCours=None)</dt><dd><tt>Attributs:<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;abonnement&nbsp;qui&nbsp;cree&nbsp;un&nbsp;abonnement&nbsp;pour&nbsp;le&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;dateDebut&nbsp;correspond&nbsp;au&nbsp;debut&nbsp;du&nbsp;contrat.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;dateFin&nbsp;correspond&nbsp;a&nbsp;la&nbsp;fin&nbsp;du&nbsp;contrat.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;estEnCours&nbsp;verifie&nbsp;par&nbsp;un&nbsp;booleen&nbsp;si&nbsp;le&nbsp;contrat&nbsp;est&nbsp;toujours&nbsp;valide.<br>
&nbsp;<br>
On&nbsp;met&nbsp;les&nbsp;dates&nbsp;a&nbsp;jour&nbsp;avec&nbsp;celles&nbsp;en&nbsp;temps&nbsp;reel,&nbsp;d'aujourd'hui,&nbsp;grace&nbsp;aux&nbsp;modules&nbsp;time<br>
et&nbsp;datetime.&nbsp;Puis&nbsp;on&nbsp;verifie&nbsp;la&nbsp;date&nbsp;pour&nbsp;decider&nbsp;si&nbsp;le&nbsp;contrat&nbsp;est&nbsp;en&nbsp;cours&nbsp;ou&nbsp;non.</tt></dd></dl>

<dl><dt><a name="Contrat-creerContrat"><strong>creerContrat</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;On&nbsp;affiche&nbsp;le&nbsp;contrat&nbsp;et&nbsp;sa&nbsp;duree.</tt></dd></dl>

<dl><dt><a name="Contrat-getDateDebut"><strong>getDateDebut</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;dateDebut&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Contrat-getDateFin"><strong>getDateFin</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;dateFin&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Contrat-rompreContrat"><strong>rompreContrat</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;on&nbsp;suprime&nbsp;le&nbsp;contrat&nbsp;en&nbsp;mettant&nbsp;la&nbsp;date&nbsp;d'aujourd'hui&nbsp;dans&nbsp;l'attribut&nbsp;dateFin.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>